<?php
/* @var $this PostController */
/* @var $model Post */

$this->breadcrumbs=array(
	'Posts'=>array('index'),
	$model->title
);

?>

<div class="page-header">
	<div class="page-title"><h3>Edit Post '<?php echo $model->title; ?>'</h3></div>
	<div class="buttons">
		<a href="<?php echo $this->createurl('index')?>" class="btn">Back</a>
		<a class="btn btn-danger" id="btn_delete" href="<?php echo $this->createUrl('delete', array('id'=>$model->id))?>"  data-loading-text="Deleting...">Delete</a>
		<button class="btn btn-primary" id="btn_save">Save</button>
		<button class="btn btn-info" id="btn_save_edit">Save &amp; Edit</button>
	</div>
</div>

<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>